package cn.wolfcode.qo;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by 甘静斌 on 2020-07-24 21:52
 */
public abstract class DateUtil {
        //获取该日期的当天最晚的时候 xxxx 23:59:59
        public static Date getEndDate(Date date) {
            if (date == null) {
                return null;
            }
            Calendar c = Calendar.getInstance();
            c.setTime(date);
            c.set(Calendar.HOUR,23);
            c.set(Calendar.MINUTE,59);
            c.set(Calendar.SECOND,59);
            return c.getTime();
        }
    }

